package com.example.user.service;

import com.example.user.chain.OrderHandlerChain;
import com.example.user.entity.po.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Author:汪彬彬
 * date:2024/11/20 16:18
 */
@Service
public class OrderService {
    @Autowired
    OrderHandlerChain orderHandlerChain;

    public boolean processOrder(Order order){
        boolean result = orderHandlerChain.process(order);
         return  result;
    }

}
